﻿using System.ComponentModel;
using System.Windows.Forms;
using NSGetData;

namespace NSGetData
{
    public partial class ProcessForm : Form
    {
        private BackgroundWorker backgroundWorker;
        public ProcessForm(BackgroundWorker worker1)
        {
            InitializeComponent();
            backgroundWorker = worker1;
            backgroundWorker.WorkerReportsProgress = true;
            //backgroundWorker.DoWork += new DoWorkEventHandler(backgroundWorker_DoWork);
            backgroundWorker.ProgressChanged += new ProgressChangedEventHandler(backgroundWorker_ProgressChanged);
            backgroundWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(backgroundWorker_RunWorkerCompleted);
        }
        void backgroundWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            this.Close();
        }
        void backgroundWorker_ProgressChanged(object sender, ProgressChangedEventArgs e)
        {
            this.progressBar1.Value = e.ProgressPercentage;
        }
        public void backgroundWorker_DoWork(object sender, ProgressChangedEventArgs e)
        {


        }
    }
}
